<?php
  include("sessiontest.php");
  include("classes/feeds.cls.php");
  
  $feed = new RssFeed($_GET["title"], $_GET["url"]);
  echo "<div id=\"feeditems\" title=\"RSS Items\" class=\"panel\" selected=\"true\">";
  echo "<h2>" . $feed->getTitle() . "</h2>";
  echo "<fieldset>";
  foreach ($feed->getItems() as $item) {
    echo "<div class=\"row\">";
    echo "<a href=\"#actions\" class=\"list\">" . $item->getTitle() . "</a>";
    echo "</div>";
  }
  echo "</fieldset>";
  echo "</div>";
?>

<div id="actions" title="Torrent" class="panel">
  <fieldset>
    <div class="row">
      <label>Title</label>
      <span>sdfsdf</span>
    </div>
  </fieldset>
  
  <fieldset>
    <div class="row">
      <a href="" class="command">Start</a>
    </div>
    <div class="row">
      <a href="" class="command">Queue</a>
    </div>
  </fieldset>
</div>